<?php
    require '../class/sess.php';
    if(isset($_POST['user']) && isset($_POST['pass'])){
         $sess  = new session($_POST['user'],$_POST['pass']);
         $sess->logIn();
    }else{
    	 header('location:../index.php');
    }
?>
